package com.nameless.controller;

import com.nameless.service.StatisticsService;
import com.nameless.vo.Result;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description: 统计
 * @date 2023-02-28 17:28:09
 */
@RestController
@RequestMapping("/car/accountStatement")
public class StatisticsController {
    @Autowired
    private StatisticsService statisticsService;
    @GetMapping("/incomeRecord")
    public Result incomeRecord(String yearMonth){
        System.out.println(yearMonth);
        return statisticsService.incomeRecord(yearMonth);
    }
}
